{% extends "StartGroup/groupHome.html" %}
{% block extrajs %}
{% endblock %}
{% block portraitUpload %}{% endblock %}

{% block content %}
    <script src="/{{ media_url }}contifyuser/js/jquery-1.4.2.min.js" type="text/javascript"></script>
    {% if permission == "Owner" or permission == "Board Member" or permission == "Assistant Board Member" %}

    <div id="startGroupDivId" class="startForm">
	<form method="POST" id="post_doc" action="/connectpeople/{{ group.group_web_address }}/docs/view" enctype="multipart/form-data">	
	<input type="hidden" name="action" value="post">
	<div class="groupInfoContainer">
	    <div class="nobreak">
		<div class="nobreak infoFormFieldLine">
		    <div class="nobreak infoFormLabel"><span><strong>{{ doc_form.title.label_tag }}</strong></span></div>
		    <div class="nobreak infoFormField">{{ doc_form.title }}</div>
		    <p>{{ doc_form.errors.title }}</p>
		</div>		
	    </div>
	    <div class="nobreak clearbreak">
		<div class="nobreak infoFormFieldLine">
		    <div class="nobreak infoFormLabel"><span><strong>{{ doc_form.description.label_tag }}</strong></span></div>
		    <div class="nobreak infoFormField">{{ doc_form.description}}</div>
		</div>
	    </div>
	    <div class="nobreak clearbreak">
		<div class="nobreak infoFormFieldLine">
		    <div class="nobreak infoFormLabel"><span><strong>{{ doc_form.file.label_tag }}</strong></span></div>
		    <div class="nobreak infoFormField">{{ doc_form.file}}</div>
		</div>
	    </div>	    
	    <div class="nobreak clearbreak">
		<input type="submit" value="Upload Documnet"  name='uploadDocument'/>
	    </div>
	</div>
    	</form>
    </div>
    {% else %}
	<div class="groupInfoContainer">
		Only Owner, Board Members and Assistant Board MEmbers can post new docs.
	</div>
    {% endif %}
{% endblock %}
